<script language="JavaScript" type="text/JavaScript">
function aaa(){
    var script=document.createElement('script'); 
    script.type = "text/javascript" ; 
    var url="http://localhost:3000/webgui/show";
    script.setAttribute("src",url);
    document.body.appendChild(script);
    }
function show()
{
alert("in show!");
}
</script>
<a herf="#" onclick="aaa();return false;">test 2 page</a>